TEMPLATE      = lib
CONFIG       += qt plugin warn_off
QT += opengl

INCLUDEPATH  += ../..
HEADERS       = perpixellightingrender.h
SOURCES       = perpixellightingrender.cpp
TARGET        = $$qtLibraryTarget(perpixellighting)
DESTDIR       = ../../../plugins
linux:LIBS 	 += -L../../contrib/linux/glew/lib -lGLEW \
				-L../../data -ldata -L../../math -lmath -L../../renderer -lrenderer
macx:LIBS += -L../../contrib/macx/glew/lib/ -lGLEW ../../data/libdata.a ../../math/libmath.a \
				../../renderer/librenderer.a ../../datamanager/libdatamanager.a

INCLUDEPATH += ../../contrib/glut

macx {
	INCLUDEPATH += ../../contrib/macx/glew/include
	DEFINES += MACX_DEV __GNU__
}

linux {
	INCLUDEPATH += /home/xyzhang/src/glut-3.7/include/GL ../../contrib/linux/glew/include
	DEFINES += __GNU__
	}
# install
# target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint/plugins
# sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS extrafilters.pro
# sources.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaintplugins/extrafilters
# INSTALLS += target sources
